import Layout from '@/layout/index'
export default [
  {
    path: '/activities',
    component: Layout,
    redirect: 'noredirect',
    hidden: false,
    alwaysShow: true,
    meta: {
      icon: 'activities',
      noCache: true,
      title: '党群活动'
    },
    children: [
      {
        path: 'law',
        component: (resolve) => require(['@/views/activities/law'], resolve),
        name: 'Law',
        meta: { title: '乡镇（街道）', icon: 'law', noCache: true }
      },
      {
        path: 'close',
        component: (resolve) => require(['@/views/activities/close'], resolve),
        name: 'Close',
        meta: { title: '机关活动', icon: 'close', noCache: true }
      },
      {
        path: 'popularity',
        component: (resolve) =>
          require(['@/views/activities/popularity'], resolve),
        name: 'Popularity',
        meta: { title: '两新组织活动', icon: 'popularity', noCache: true }
      },
      {
        path: 'publication',
        component: (resolve) =>
          require(['@/views/activities/publication'], resolve),
        name: 'Publication',
        meta: { title: '发布活动', icon: 'publication', noCache: true }
      },
      {
        path: 'zhendish',
        component: (resolve) =>
          require(['@/views/activities/zhendish'], resolve),
        name: 'Zhendish',
        meta: { title: '阵地预约审核', icon: 'zhendish', noCache: true }
      },
      {
        path: 'resident',
        component: (resolve) =>
          require(['@/views/activities/resident'], resolve),
        name: 'Resident',
        meta: { title: '共驻共建', icon: 'resident', noCache: true }
      },
      {
        path: 'space',
        component: (resolve) => require(['@/views/activities/space'], resolve),
        name: 'Space',
        meta: { title: '朋友圈审核', icon: 'space', noCache: true }
      }
    ]
  }
]
